#define _CRT_SECURE_NO_WARNINGS
#include"ST.h"
void STtest()
{
	ST plist;
	STInit(&plist);
	/////////////////
	STPush(&plist, 1);
	STPush(&plist, 2);
	STPush(&plist, 3);
	STPush(&plist, 4);
	printf("size:%d\n", STSize(&plist));

	while (!STEmpty(&plist))
	{
		printf("%d ", STTop(&plist));
		STPop(&plist);
	}
	printf("\nsize:%d\n", STSize(&plist));
	/////////////////
	STDestroy(&plist);
}
int main()
{
	STtest();
	return 0;
}